<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/doUpdate" method="post">
        <input type="hidden" name="id" th:value="${score.id}">
        学生：
        <select name="studentId" th:value="${score.studentId}">
            <option th:each="stu : ${students}"
                    th:value="${stu.id}"
                    th:text="${stu.name}"
                    th:selected="${stu.id}==${score.studentId}"></option>
        </select><br>
        课程: <input type="text" name="course" th:value="${score.course}"><br>
        分数: <input type="text" name="score" th:value="${score.score}"><br>
        <input type="submit" value="更新"><br>
    </form>
</body>
</html>
